<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.3.1"/>
<title>Automatizacion de medición de susceptibilidad magnética: Fichero Fuente lcdTest.c</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="logo-igl.png"/></td>
  <td style="padding-left: 0.5em;">
   <div id="projectname">Automatizacion de medición de susceptibilidad magnética
   &#160;<span id="projectnumber">0.7</span>
   </div>
   <div id="projectbrief">El firmware que a continuación se presenta, es para manejar un par de ejes lineales que se encuentran en una posición ortogonal, a fin de imitar el movimiento que realiza un operador cuando toma 100 muestras en un núcleo de mineral obtenido de paleo lagos</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generado por Doxygen 1.8.3.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Buscar');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Página&#160;principal</span></a></li>
      <li><a href="annotated.html"><span>Estructuras&#160;de&#160;Datos</span></a></li>
      <li class="current"><a href="files.html"><span>Archivos</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Buscar" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>Lista&#160;de&#160;archivos</span></a></li>
      <li><a href="globals.html"><span>Globales</span></a></li>
    </ul>
  </div>
</div><!-- top -->
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>Todo</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Estructuras de Datos</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Archivos</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Funciones</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>&apos;typedefs&apos;</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Enumeraciones</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Valores de enumeraciones</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>&apos;defines&apos;</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">lcdTest.c</div>  </div>
</div><!--header-->
<div class="contents">
<a href="lcd_test_8c.html">Ir a la documentación de este archivo.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="preprocessor">#include &lt;pic18f2550.h&gt;</span></div>
<div class="line"><a name="l00002"></a><span class="lineno"><a class="code" href="lcd_test_8c.html#a802b2b582b121e4632aa9a491d503720">    2</a></span>&#160;<span class="preprocessor">#define FOSC 48000000</span></div>
<div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="preprocessor"></span><span class="preprocessor">#include &quot;<a class="code" href="simple__delay_8h.html">simple_delay.h</a>&quot;</span></div>
<div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="f_l_c_d3b_s_d_c_c_8h.html">fLCD3bSDCC.h</a>&quot;</span></div>
<div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;</div>
<div class="line"><a name="l00006"></a><span class="lineno"><a class="code" href="lcd_test_8c.html#ae2d225aa33b217f4ab9afdc781859c64">    6</a></span>&#160;__code <span class="keywordtype">char</span> <a class="code" href="pic16f628_a_i_g_l_8h.html#ab8943795b648a6626d7a86170b880aac">__at</a> __CONFIG1L <a class="code" href="lcd_test_8c.html#ae2d225aa33b217f4ab9afdc781859c64">CONFIG1L</a> = _PLLDIV_NO_DIVIDE__4MHZ_INPUT__1L &amp; _CPUDIV__OSC1_OSC2_SRC___1__96MHZ_PLL_SRC___2__1L &amp; _USBPLL_CLOCK_SRC_FROM_96MHZ_PLL_2_1L;</div>
<div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="comment">//code char at __CONFIG1H CONFIG1H = _OSC_HS__USB_HS_1H &amp; _FCMEN_OFF_1H &amp; _IESO_OFF_1H;</span></div>
<div class="line"><a name="l00008"></a><span class="lineno"><a class="code" href="lcd_test_8c.html#a682484ab45ce4c1dd0a34999e85656ff">    8</a></span>&#160;__code <span class="keywordtype">char</span> <a class="code" href="pic16f628_a_i_g_l_8h.html#ab8943795b648a6626d7a86170b880aac">__at</a> __CONFIG1H <a class="code" href="lcd_test_8c.html#a682484ab45ce4c1dd0a34999e85656ff">CONFIG1H</a> = _OSC_XT__XT_PLL__USB_XT_1H &amp; _FCMEN_ON_1H &amp; _IESO_ON_1H;</div>
<div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;  <span class="comment">//_FOSC_HS_1H _FOSC_HS_1H  //_OSC_HS__HS_PLL__USB_HS_1H</span></div>
<div class="line"><a name="l00010"></a><span class="lineno"><a class="code" href="lcd_test_8c.html#a022b96cf48e815676ef6066cb1bdc2ff">   10</a></span>&#160;__code <span class="keywordtype">char</span> <a class="code" href="pic16f628_a_i_g_l_8h.html#ab8943795b648a6626d7a86170b880aac">__at</a> __CONFIG2L <a class="code" href="lcd_test_8c.html#a022b96cf48e815676ef6066cb1bdc2ff">CONFIG2L</a> = _PUT_ON_2L &amp; _BODEN_ON_2L &amp; _BODENV_4_2V_2L &amp; _VREGEN_ON_2L;</div>
<div class="line"><a name="l00011"></a><span class="lineno"><a class="code" href="lcd_test_8c.html#a9d20f0f64161de56e804ae51677e6819">   11</a></span>&#160;__code <span class="keywordtype">char</span> <a class="code" href="pic16f628_a_i_g_l_8h.html#ab8943795b648a6626d7a86170b880aac">__at</a> __CONFIG2H <a class="code" href="lcd_test_8c.html#a9d20f0f64161de56e804ae51677e6819">CONFIG2H</a> = _WDT_DISABLED_CONTROLLED_2H &amp; _WDTPS_1_32768_2H;</div>
<div class="line"><a name="l00012"></a><span class="lineno"><a class="code" href="lcd_test_8c.html#aa39e3038934b4f712cd513d9558c21b7">   12</a></span>&#160;__code <span class="keywordtype">char</span> <a class="code" href="pic16f628_a_i_g_l_8h.html#ab8943795b648a6626d7a86170b880aac">__at</a> __CONFIG3H <a class="code" href="lcd_test_8c.html#aa39e3038934b4f712cd513d9558c21b7">CONFIG3H</a> = _CCP2MUX_RC1_3H &amp; _PBADEN_PORTB_4_0__CONFIGURED_AS_DIGITAL_I_O_ON_RESET_3H &amp; _LPT1OSC_ON_3H &amp; _MCLRE_MCLR_ON_RE3_OFF_3H;</div>
<div class="line"><a name="l00013"></a><span class="lineno"><a class="code" href="lcd_test_8c.html#a57053ab72d519e626793227656847fce">   13</a></span>&#160;__code <span class="keywordtype">char</span> <a class="code" href="pic16f628_a_i_g_l_8h.html#ab8943795b648a6626d7a86170b880aac">__at</a> __CONFIG4L <a class="code" href="lcd_test_8c.html#a57053ab72d519e626793227656847fce">CONFIG4L</a> = _STVR_ON_4L &amp; _LVP_OFF_4L &amp; _ENHCPU_OFF_4L &amp; _BACKBUG_OFF_4L;</div>
<div class="line"><a name="l00014"></a><span class="lineno"><a class="code" href="lcd_test_8c.html#a07acd2fdb562a196e1f6b9bd6a6a9c56">   14</a></span>&#160;__code <span class="keywordtype">char</span> <a class="code" href="pic16f628_a_i_g_l_8h.html#ab8943795b648a6626d7a86170b880aac">__at</a> __CONFIG5L <a class="code" href="lcd_test_8c.html#a07acd2fdb562a196e1f6b9bd6a6a9c56">CONFIG5L</a> = _CP_0_OFF_5L &amp; _CP_1_OFF_5L &amp; _CP_2_OFF_5L &amp; _CP_3_OFF_5L;</div>
<div class="line"><a name="l00015"></a><span class="lineno"><a class="code" href="lcd_test_8c.html#a6ffa7a35a4d7d51f627323982beb5018">   15</a></span>&#160;__code <span class="keywordtype">char</span> <a class="code" href="pic16f628_a_i_g_l_8h.html#ab8943795b648a6626d7a86170b880aac">__at</a> __CONFIG5H <a class="code" href="lcd_test_8c.html#a6ffa7a35a4d7d51f627323982beb5018">CONFIG5H</a> = _CPB_OFF_5H;</div>
<div class="line"><a name="l00016"></a><span class="lineno"><a class="code" href="lcd_test_8c.html#aae9d24bbc898d883e402b8e5addff8f1">   16</a></span>&#160;__code <span class="keywordtype">char</span> <a class="code" href="pic16f628_a_i_g_l_8h.html#ab8943795b648a6626d7a86170b880aac">__at</a> __CONFIG6L <a class="code" href="lcd_test_8c.html#aae9d24bbc898d883e402b8e5addff8f1">CONFIG6L</a> = _WRT_0_OFF_6L &amp; _WRT_1_OFF_6L &amp; _WRT_2_OFF_6L &amp; _WRT_3_OFF_6L;</div>
<div class="line"><a name="l00017"></a><span class="lineno"><a class="code" href="lcd_test_8c.html#ad93d5f48b12c5dd6af14826055776ced">   17</a></span>&#160;__code <span class="keywordtype">char</span> <a class="code" href="pic16f628_a_i_g_l_8h.html#ab8943795b648a6626d7a86170b880aac">__at</a> __CONFIG6H <a class="code" href="lcd_test_8c.html#ad93d5f48b12c5dd6af14826055776ced">CONFIG6H</a> = _WRTC_OFF_6H &amp; _WRTB_OFF_6H;</div>
<div class="line"><a name="l00018"></a><span class="lineno"><a class="code" href="lcd_test_8c.html#ac5812025cb9fbadab7f518f46233ba0e">   18</a></span>&#160;__code <span class="keywordtype">char</span> <a class="code" href="pic16f628_a_i_g_l_8h.html#ab8943795b648a6626d7a86170b880aac">__at</a> __CONFIG7L <a class="code" href="lcd_test_8c.html#ac5812025cb9fbadab7f518f46233ba0e">CONFIG7L</a> = _EBTR_0_OFF_7L &amp; _EBTR_1_OFF_7L &amp; _EBTR_2_OFF_7L &amp; _EBTR_3_OFF_7L;</div>
<div class="line"><a name="l00019"></a><span class="lineno"><a class="code" href="lcd_test_8c.html#ab6607d802d883c8ba9f80c7cc83438a2">   19</a></span>&#160;__code <span class="keywordtype">char</span> <a class="code" href="pic16f628_a_i_g_l_8h.html#ab8943795b648a6626d7a86170b880aac">__at</a> __CONFIG7H <a class="code" href="lcd_test_8c.html#ab6607d802d883c8ba9f80c7cc83438a2">CONFIG7H</a> = _EBTRB_OFF_7H;</div>
<div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;</div>
<div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;</div>
<div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;</div>
<div class="line"><a name="l00023"></a><span class="lineno"><a class="code" href="lcd_test_8c.html#acdef7a1fd863a6d3770c1268cb06add3">   23</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="lcd_test_8c.html#acdef7a1fd863a6d3770c1268cb06add3">main</a>() {</div>
<div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;    <span class="comment">/* &lt;&lt; agregue el código &gt;&gt; */</span></div>
<div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;    <a class="code" href="delay16_8c.html#a8aa473f8ae9a91df4bc9ea700983c72d">delay_ms</a>(500);</div>
<div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;    <a class="code" href="delay16_8c.html#a8aa473f8ae9a91df4bc9ea700983c72d">delay_ms</a>(500);</div>
<div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;    <a class="code" href="f_l_c_d3b_s_d_c_c_8h.html#a6842775ba83d166f02b8fef8bb63b1e6" title="lcd_init() funcion para inicializar la LCD">lcd_init</a>();</div>
<div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;    <a class="code" href="f_l_c_d3b_s_d_c_c_8h.html#a72d929ba55e510e11b84550a601f9c38" title="void lcd_send(char mode char dato)">lcd_send</a>(<a class="code" href="f_l_c_d3b_s_d_c_c_8h.html#ade18824d43ae8c08c02473b59e5c4e0c">LCD_COMMANDMODE</a>, <a class="code" href="f_l_c_d3b_s_d_c_c_8h.html#a6aa8aa2057294b7d06088e834299b369">LCD_CLEAR</a>);</div>
<div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160; <a class="code" href="f_l_c_d3b_s_d_c_c_8h.html#a72d929ba55e510e11b84550a601f9c38" title="void lcd_send(char mode char dato)">lcd_send</a>(<a class="code" href="f_l_c_d3b_s_d_c_c_8h.html#ade18824d43ae8c08c02473b59e5c4e0c">LCD_COMMANDMODE</a>, <a class="code" href="f_l_c_d3b_s_d_c_c_8h.html#ac30f9eb729142201bec6ef0aa45e5c07">LCD_LINE1</a>);</div>
<div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160; <a class="code" href="f_l_c_d3b_s_d_c_c_8h.html#a7cdf1d76c734edc7f15e925cd949b936" title="La funcion puts pone en cola de impresion a lcd una cadena de caracteres.">lcd_puts</a>(<span class="stringliteral">&quot;  Automatismo para  &quot;</span>);</div>
<div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160; <a class="code" href="f_l_c_d3b_s_d_c_c_8h.html#a72d929ba55e510e11b84550a601f9c38" title="void lcd_send(char mode char dato)">lcd_send</a>(<a class="code" href="f_l_c_d3b_s_d_c_c_8h.html#ade18824d43ae8c08c02473b59e5c4e0c">LCD_COMMANDMODE</a>, <a class="code" href="f_l_c_d3b_s_d_c_c_8h.html#aee2c59879d4dca634a1ba6a2769e4ee6">LCD_LINE2</a>);</div>
<div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160; <a class="code" href="f_l_c_d3b_s_d_c_c_8h.html#a7cdf1d76c734edc7f15e925cd949b936" title="La funcion puts pone en cola de impresion a lcd una cadena de caracteres.">lcd_puts</a>(<span class="stringliteral">&quot;   medicion en inv. &quot;</span>);</div>
<div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160; <a class="code" href="f_l_c_d3b_s_d_c_c_8h.html#a72d929ba55e510e11b84550a601f9c38" title="void lcd_send(char mode char dato)">lcd_send</a>(<a class="code" href="f_l_c_d3b_s_d_c_c_8h.html#ade18824d43ae8c08c02473b59e5c4e0c">LCD_COMMANDMODE</a>, <a class="code" href="f_l_c_d3b_s_d_c_c_8h.html#a3a2ee32835c7649e5da01563407d8665">LCD_LINE3</a>);</div>
<div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160; <a class="code" href="f_l_c_d3b_s_d_c_c_8h.html#a7cdf1d76c734edc7f15e925cd949b936" title="La funcion puts pone en cola de impresion a lcd una cadena de caracteres.">lcd_puts</a>(<span class="stringliteral">&quot;   paleo-ambiental .&quot;</span>);</div>
<div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160; <a class="code" href="f_l_c_d3b_s_d_c_c_8h.html#a72d929ba55e510e11b84550a601f9c38" title="void lcd_send(char mode char dato)">lcd_send</a>(<a class="code" href="f_l_c_d3b_s_d_c_c_8h.html#ade18824d43ae8c08c02473b59e5c4e0c">LCD_COMMANDMODE</a>, <a class="code" href="f_l_c_d3b_s_d_c_c_8h.html#a11fc99e0a8ac2eb3504e94b0a771234f">LCD_LINE4</a>);</div>
<div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160; <a class="code" href="f_l_c_d3b_s_d_c_c_8h.html#a7cdf1d76c734edc7f15e925cd949b936" title="La funcion puts pone en cola de impresion a lcd una cadena de caracteres.">lcd_puts</a>(<span class="stringliteral">&quot;   IGL UNAM - ITST  &quot;</span>);</div>
<div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;        <a class="code" href="delay16_8c.html#a8aa473f8ae9a91df4bc9ea700983c72d">delay_ms</a>(1000);</div>
<div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;        <a class="code" href="delay16_8c.html#a8aa473f8ae9a91df4bc9ea700983c72d">delay_ms</a>(1000);</div>
<div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;}</div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generado el Sábado, 1 de Junio de 2013 22:24:36 para Automatizacion de medición de susceptibilidad magnética por &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.3.1
</small></address>
</body>
</html>
